package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.SysChatMessage;

import java.io.Serial;
import java.io.Serializable;


/**
 * 聊天消息视图对象 sys_chat_message
 *
 * @author Lion Li
 * @date 2025-02-25
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysChatMessage.class)
public class SysChatMessageVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户状态ID
     */
    @ExcelProperty(value = "用户状态ID")
    private Long id;

    /**
     * 房间ID
     */
    @ExcelProperty(value = "房间ID")
    private Long roomId;

    /**
     * 消息发送者ID
     */
    @ExcelProperty(value = "消息发送者ID")
    private Long fromId;

    /**
     * 发送消息
     */
    @ExcelProperty(value = "发送消息")
    private String content;

    /**
     * 回复消息ID
     */
    @ExcelProperty(value = "回复消息ID")
    private Long replyMsgId;

    /**
     * 消息状态（0：删除、1：正常）
     */
    @ExcelProperty(value = "消息状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=：删除、1：正常")
    private Long status;

    /**
     * 与回复的消息间隔多少条
     */
    @ExcelProperty(value = "与回复的消息间隔多少条")
    private Long gapCount;

    /**
     * 消息类型 1正常文本 2.撤回消息
     */
    @ExcelProperty(value = "消息类型 1正常文本 2.撤回消息")
    private Long type;

    /**
     * 扩展消息
     */
    @ExcelProperty(value = "扩展消息")
    private String extraMsg;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
